package com.indexingsystem.boss.Vo;


import java.io.Serializable;
import java.util.List;


/**
 * @author Administrator
 */
public class OrderProductsVo implements Serializable
{
    /**
	 * 
	 */
    private static final long serialVersionUID = 7963343627052436776L;

    private String orderProductId;

    private String orderId;

    private String productId;

    private String productName;

    private String alias;

    private Integer productType;

    private Integer orderType;

    private String resCategoryId;

    private String resCategoryName;

    private String publishyear;

    private String publishmonth;

    private String institutionsId;

    private String upInstitutionsId;

    private String productAbbreviation;

    private String startYear;

    private String endYear;

    private String productPrice;

    private String reserveEndDate;

    private Integer reserveNumber;

    private String createTime;

    private String updateTime;

    private Integer unitCount;

    private List<OrderResProductsVo> orderResProductsVoList;

    public String getOrderProductId()
    {
        return orderProductId;
    }

    public void setOrderProductId(String orderProductId)
    {
        this.orderProductId = orderProductId;
    }

    public String getOrderId()
    {
        return orderId;
    }

    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getProductId()
    {
        return productId;
    }

    public void setProductId(String productId)
    {
        this.productId = productId;
    }

    public String getProductName()
    {
        return productName;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getAlias()
    {
        return alias;
    }

    public void setAlias(String alias)
    {
        this.alias = alias;
    }

    public Integer getProductType()
    {
        return productType;
    }

    public void setProductType(Integer productType)
    {
        this.productType = productType;
    }

    public Integer getOrderType()
    {
        return orderType;
    }

    public void setOrderType(Integer orderType)
    {
        this.orderType = orderType;
    }

    public String getResCategoryId()
    {
        return resCategoryId;
    }

    public void setResCategoryId(String resCategoryId)
    {
        this.resCategoryId = resCategoryId;
    }

    public String getResCategoryName()
    {
        return resCategoryName;
    }

    public void setResCategoryName(String resCategoryName)
    {
        this.resCategoryName = resCategoryName;
    }

    public String getPublishyear()
    {
        return publishyear;
    }

    public void setPublishyear(String publishyear)
    {
        this.publishyear = publishyear;
    }

    public String getPublishmonth()
    {
        return publishmonth;
    }

    public void setPublishmonth(String publishmonth)
    {
        this.publishmonth = publishmonth;
    }

    public String getInstitutionsId()
    {
        return institutionsId;
    }

    public void setInstitutionsId(String institutionsId)
    {
        this.institutionsId = institutionsId;
    }

    public String getUpInstitutionsId()
    {
        return upInstitutionsId;
    }

    public void setUpInstitutionsId(String upInstitutionsId)
    {
        this.upInstitutionsId = upInstitutionsId;
    }

    public String getProductAbbreviation()
    {
        return productAbbreviation;
    }

    public void setProductAbbreviation(String productAbbreviation)
    {
        this.productAbbreviation = productAbbreviation;
    }

    public String getStartYear()
    {
        return startYear;
    }

    public void setStartYear(String startYear)
    {
        this.startYear = startYear;
    }

    public String getEndYear()
    {
        return endYear;
    }

    public void setEndYear(String endYear)
    {
        this.endYear = endYear;
    }

    public String getProductPrice()
    {
        return productPrice;
    }

    public void setProductPrice(String productPrice)
    {
        this.productPrice = productPrice;
    }

    public String getReserveEndDate()
    {
        return reserveEndDate;
    }

    public void setReserveEndDate(String reserveEndDate)
    {
        this.reserveEndDate = reserveEndDate;
    }

    public Integer getReserveNumber()
    {
        return reserveNumber;
    }

    public void setReserveNumber(Integer reserveNumber)
    {
        this.reserveNumber = reserveNumber;
    }

    public String getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(String createTime)
    {
        this.createTime = createTime;
    }

    public String getUpdateTime()
    {
        return updateTime;
    }

    public void setUpdateTime(String updateTime)
    {
        this.updateTime = updateTime;
    }

    public Integer getUnitCount()
    {
        return unitCount;
    }

    public void setUnitCount(Integer unitCount)
    {
        this.unitCount = unitCount;
    }

    public List<OrderResProductsVo> getOrderResProductsVoList()
    {
        return orderResProductsVoList;
    }

    public void setOrderResProductsVoList(List<OrderResProductsVo> orderResProductsVoList)
    {
        this.orderResProductsVoList = orderResProductsVoList;
    }

    public OrderProductsVo()
    {
        super();
    }

    public OrderProductsVo(String orderProductId, String orderId, String productId,
                           String productName, String alias, Integer productType,
                           Integer orderType, String resCategoryId, String resCategoryName,
                           String publishyear, String publishmonth, String institutionsId,
                           String upInstitutionsId, String productAbbreviation, String startYear,
                           String endYear, String productPrice, String reserveEndDate,
                           Integer reserveNumber, String createTime, String updateTime,
                           Integer unitCount, List<OrderResProductsVo> orderResProductsVoList)
    {
        super();
        this.orderProductId = orderProductId;
        this.orderId = orderId;
        this.productId = productId;
        this.productName = productName;
        this.alias = alias;
        this.productType = productType;
        this.orderType = orderType;
        this.resCategoryId = resCategoryId;
        this.resCategoryName = resCategoryName;
        this.publishyear = publishyear;
        this.publishmonth = publishmonth;
        this.institutionsId = institutionsId;
        this.upInstitutionsId = upInstitutionsId;
        this.productAbbreviation = productAbbreviation;
        this.startYear = startYear;
        this.endYear = endYear;
        this.productPrice = productPrice;
        this.reserveEndDate = reserveEndDate;
        this.reserveNumber = reserveNumber;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.unitCount = unitCount;
        this.orderResProductsVoList = orderResProductsVoList;
    }

    @Override
    public String toString()
    {
        return "OrderProductsVo [orderProductId=" + orderProductId + ", orderId=" + orderId
               + ", productId=" + productId + ", productName=" + productName + ", alias=" + alias
               + ", productType=" + productType + ", orderType=" + orderType + ", resCategoryId="
               + resCategoryId + ", resCategoryName=" + resCategoryName + ", publishyear="
               + publishyear + ", publishmonth=" + publishmonth + ", institutionsId="
               + institutionsId + ", upInstitutionsId=" + upInstitutionsId
               + ", productAbbreviation=" + productAbbreviation + ", startYear=" + startYear
               + ", endYear=" + endYear + ", productPrice=" + productPrice + ", reserveEndDate="
               + reserveEndDate + ", reserveNumber=" + reserveNumber + ", createTime="
               + createTime + ", updateTime=" + updateTime + ", unitCount=" + unitCount
               + ", orderResProductsVoList=" + orderResProductsVoList + "]";
    }

    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((alias == null) ? 0 : alias.hashCode());
        result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
        result = prime * result + ((endYear == null) ? 0 : endYear.hashCode());
        result = prime * result + ((institutionsId == null) ? 0 : institutionsId.hashCode());
        result = prime * result + ((orderId == null) ? 0 : orderId.hashCode());
        result = prime * result + ((orderProductId == null) ? 0 : orderProductId.hashCode());
        result = prime * result
                 + ((orderResProductsVoList == null) ? 0 : orderResProductsVoList.hashCode());
        result = prime * result + ((orderType == null) ? 0 : orderType.hashCode());
        result = prime * result
                 + ((productAbbreviation == null) ? 0 : productAbbreviation.hashCode());
        result = prime * result + ((productId == null) ? 0 : productId.hashCode());
        result = prime * result + ((productName == null) ? 0 : productName.hashCode());
        result = prime * result + ((productPrice == null) ? 0 : productPrice.hashCode());
        result = prime * result + ((productType == null) ? 0 : productType.hashCode());
        result = prime * result + ((publishmonth == null) ? 0 : publishmonth.hashCode());
        result = prime * result + ((publishyear == null) ? 0 : publishyear.hashCode());
        result = prime * result + ((resCategoryId == null) ? 0 : resCategoryId.hashCode());
        result = prime * result + ((resCategoryName == null) ? 0 : resCategoryName.hashCode());
        result = prime * result + ((reserveEndDate == null) ? 0 : reserveEndDate.hashCode());
        result = prime * result + ((reserveNumber == null) ? 0 : reserveNumber.hashCode());
        result = prime * result + ((startYear == null) ? 0 : startYear.hashCode());
        result = prime * result + ((unitCount == null) ? 0 : unitCount.hashCode());
        result = prime * result + ((upInstitutionsId == null) ? 0 : upInstitutionsId.hashCode());
        result = prime * result + ((updateTime == null) ? 0 : updateTime.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        OrderProductsVo other = (OrderProductsVo)obj;
        if (alias == null)
        {
            if (other.alias != null) return false;
        }
        else if (!alias.equals(other.alias)) return false;
        if (createTime == null)
        {
            if (other.createTime != null) return false;
        }
        else if (!createTime.equals(other.createTime)) return false;
        if (endYear == null)
        {
            if (other.endYear != null) return false;
        }
        else if (!endYear.equals(other.endYear)) return false;
        if (institutionsId == null)
        {
            if (other.institutionsId != null) return false;
        }
        else if (!institutionsId.equals(other.institutionsId)) return false;
        if (orderId == null)
        {
            if (other.orderId != null) return false;
        }
        else if (!orderId.equals(other.orderId)) return false;
        if (orderProductId == null)
        {
            if (other.orderProductId != null) return false;
        }
        else if (!orderProductId.equals(other.orderProductId)) return false;
        if (orderResProductsVoList == null)
        {
            if (other.orderResProductsVoList != null) return false;
        }
        else if (!orderResProductsVoList.equals(other.orderResProductsVoList)) return false;
        if (orderType == null)
        {
            if (other.orderType != null) return false;
        }
        else if (!orderType.equals(other.orderType)) return false;
        if (productAbbreviation == null)
        {
            if (other.productAbbreviation != null) return false;
        }
        else if (!productAbbreviation.equals(other.productAbbreviation)) return false;
        if (productId == null)
        {
            if (other.productId != null) return false;
        }
        else if (!productId.equals(other.productId)) return false;
        if (productName == null)
        {
            if (other.productName != null) return false;
        }
        else if (!productName.equals(other.productName)) return false;
        if (productPrice == null)
        {
            if (other.productPrice != null) return false;
        }
        else if (!productPrice.equals(other.productPrice)) return false;
        if (productType == null)
        {
            if (other.productType != null) return false;
        }
        else if (!productType.equals(other.productType)) return false;
        if (publishmonth == null)
        {
            if (other.publishmonth != null) return false;
        }
        else if (!publishmonth.equals(other.publishmonth)) return false;
        if (publishyear == null)
        {
            if (other.publishyear != null) return false;
        }
        else if (!publishyear.equals(other.publishyear)) return false;
        if (resCategoryId == null)
        {
            if (other.resCategoryId != null) return false;
        }
        else if (!resCategoryId.equals(other.resCategoryId)) return false;
        if (resCategoryName == null)
        {
            if (other.resCategoryName != null) return false;
        }
        else if (!resCategoryName.equals(other.resCategoryName)) return false;
        if (reserveEndDate == null)
        {
            if (other.reserveEndDate != null) return false;
        }
        else if (!reserveEndDate.equals(other.reserveEndDate)) return false;
        if (reserveNumber == null)
        {
            if (other.reserveNumber != null) return false;
        }
        else if (!reserveNumber.equals(other.reserveNumber)) return false;
        if (startYear == null)
        {
            if (other.startYear != null) return false;
        }
        else if (!startYear.equals(other.startYear)) return false;
        if (unitCount == null)
        {
            if (other.unitCount != null) return false;
        }
        else if (!unitCount.equals(other.unitCount)) return false;
        if (upInstitutionsId == null)
        {
            if (other.upInstitutionsId != null) return false;
        }
        else if (!upInstitutionsId.equals(other.upInstitutionsId)) return false;
        if (updateTime == null)
        {
            if (other.updateTime != null) return false;
        }
        else if (!updateTime.equals(other.updateTime)) return false;
        return true;
    }
}